package com.bw.widget.decoration

import android.content.Context
import android.graphics.Color
import com.yanyusong.y_divideritemdecoration.Y_Divider
import com.yanyusong.y_divideritemdecoration.Y_DividerItemDecoration
import com.yanyusong.y_divideritemdecoration.Y_SideLine

class JournalDecoration (ctx : Context) : Y_DividerItemDecoration(ctx) {

    override fun getDivider(itemPosition: Int): Y_Divider? {
        if (itemPosition==0)
            return Y_Divider(
                Y_SideLine(true, Color.BLACK,0f,0f,0f),
                Y_SideLine(true, Color.CYAN,0f,0f,0f),
                Y_SideLine(true, Color.BLACK,0f,0f,0f),
                Y_SideLine(true, Color.BLACK,0f,0f,0f))
        return Y_Divider(
            Y_SideLine(true, Color.BLACK,0f,0f,0f),
            Y_SideLine(true, Color.CYAN,3f,0f,0f),
            Y_SideLine(true, Color.BLACK,0f,0f,0f),
            Y_SideLine(true, Color.BLACK,0f,0f,0f)
        )
    }
}